package cate.game.event.privilege;


import cate.common.table.d.GDFunc;
import cate.common.table.d.GDPrivilege;
import cate.game.event.GameEventListener;

public class BuyPrivilegeListenner implements GameEventListener<BuyPrivilegeEvent> {
    @Override
    public void onEvent(BuyPrivilegeEvent gameEvent) {
//        gameEvent.role.getRes().manor.teaHouse.infoLevelUpByPrivilege(gameEvent.privilegeId);
//        if(gameEvent.role.getActivity().allOnHook.getActivity(GDFunc.ALL_ON_HOOK_ACTIVITY).enable()){
//            gameEvent.role.getActivity().allOnHook.getActivity(GDFunc.ALL_ON_HOOK_ACTIVITY).setPrivilege(gameEvent.privilegeId);
//        }
        if (gameEvent.privilegeId == GDPrivilege.Type.FARM) {
            gameEvent.role.getRes().farm.afterPay(1, false);
        }
    }
}
